package cn.xmirror.fsof.service;

import com.alibaba.dubbo.rpc.service.GenericServiceAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;


/**
 * 描述 泛化 实现
 * name HelloServiceGenericImpl
 * copyright Copyright by fenqile.com
 *
 * @author 舒惠国
 * @version 2016/1/20
 */
public class HelloServiceGenericImpl extends GenericServiceAdapter {
    
    private static final Logger logger = LoggerFactory.getLogger(HelloServiceGenericImpl.class);

    public String sayHello(String str){
        logger.info("generic call sayHello");
        System.out.println("generic call sayHello");//NOSONAR
        return "hello-"+str;
    }

    public String sayBye() {
        logger.info("generic call bye");
        System.out.println("generic call bye");
        return "bye";
    }

    public String sendMap(Map<String,String> map){
        logger.info("get a map" + map);
        return map.toString();
    }
}
